//
//  SRSleep+Cate.h
//  SportRing
//
//  Created by Apple on 14/10/27.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRSleep.h"

@class SRMe;

@interface SRSleep (Cate)

+ (SRSleep *)sleep;

- (void)configAttributesWithBlock:(void(^)(SRSleep * aSelf))block;

@end

@interface SRSleep (Find)

+ (NSArray *)findAllUnuploadSleep:(SRMe *)me;

+ (SRSleep *)findSleepForDay:(SRDay *)day;

+ (SRSleep *)findSleepCINEForDay:(SRDay *)day;

+ (NSArray *)getSortedArrayWithArray:(NSArray *)array;

+ (int)minutesOfDeepSleepForDay:(SRDay *)day;

+ (int)minutesOfDeepSleepForArray:(NSArray *)array;

+ (int)minutesOfLightSleepForDay:(SRDay *)day;

+ (int)minutesOfLightSleepForArray:(NSArray *)array;

+ (int)minutesOfActiveSleepForDay:(SRDay *)day;

+ (int)minutesOfActiveSleepForArray:(NSArray *)array;

+ (int)sleepLevelForDay:(SRDay *)day;

@end

@interface SRSleep (Delete)

+ (void)deleteSleepForDay:(SRDay *)day;

@end
